<template>
  <div class="home">
    <Monitor></Monitor>
    <Search></Search>
    <Keyword></Keyword>
  </div>
</template>

<script lang="ts">
import { useUserInfoStore } from "@/stores/userInfo"
const userInfoStore = useUserInfoStore()
import Monitor from "./monitor/index.vue"
import Search from "./search/index.vue"
import Keyword from "./keywords/index.vue"
export default {
  name: "Home",
  components: {
    Monitor,
    Search,
    Keyword,
  },
}
</script>
<script lang="ts" setup>
import { useReportData } from "@/stores/reportData"
import { ref, onMounted } from "vue"
// 引入stores,在页面挂载时发送请求,获取数据到小菠萝中
// 创建小菠萝实例
const reqGetReportData = useReportData()
onMounted(() => {
  reqGetReportData.getReportData()
})
</script>

<style scoped>
.home {
  background-color: rgb(234, 228, 228);
  width: 100%;
  height: 100%;
  padding: 20px;
  font-size: 30px;
}
</style>
